const baseObj = {
  production: 'http://10.0.0.49:5000',
  development: 'http://10.0.0.49:5001',
  test: 'http://10.0.0.49:5002',
  localhost: 'http://10.0.0.49:5003',
  mock: '/'
}

let baseURLStr = `${baseObj[import.meta.env.MODE as never]}/api`
switch (import.meta.env.MODE) {
  case 'test':
    baseURLStr = `${baseObj.test}/api`
    break
  case 'l':
    baseURLStr = `${baseObj.localhost}/api`
    break
  case 'mock':
    baseURLStr = `${baseObj.mock}`
    break
  default:
    break
}

export const baseURL = baseURLStr
export const requestTimeout = 30000
